/* styles.css - refatorado com variáveis e agrupamento de media queries */

:root {
  --ff-base: Arial, sans-serif;
  --ff-accent: 'Alumni Sans Pinstripe', sans-serif;
  --color-bg-default: #555;
  --color-bg-main: #181a28;
  --color-bg-secondary: #222;
  --color-text: #fff;
  --color-accent: #ff5a5a;
  --transition-fast: .2s ease-in-out;
  --color-my-badge-i: #ff5a5a;
  --color-my-badge-d: #358500;
  --color-text-card-paragraph: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-base);
  background-color: var(--color-bg-default);
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

/* Tipografia */
.alumni-sans-pinstripe-regular,
.alumni-sans-pinstripe-regular-italic,
p,
span {
  font-family: var(--ff-accent);
}

.alumni-sans-pinstripe-regular       { font-weight: 400; font-style: normal; }
.alumni-sans-pinstripe-regular-italic{ font-weight: 400; font-style: italic; }
p {
  font-weight: 700;
  font-style: normal;
  font-size: 2em;
  margin: 0;
}
span {
  font-weight: 700;
  font-style: italic;
  color: var(--color-accent);
}

/* Header & visualizer */
.header-image {
  position: relative;
  height: 200px;
  background: url('/img/backgound-header.jpg') center/cover no-repeat;
  padding: 0;
}
.logotipo-penha {
  display: inline-block;
  width: 200px;
  height: auto;
  position: relative;
  z-index: 3;
  animation: floatAndSway 4s ease-in-out infinite;
}
@keyframes floatAndSway {
  0%,100%{ transform: translateY(0) rotate(0deg); }
  25%    { transform: translateY(-5px) rotate(2deg); }
  50%    { transform: translateY(0) rotate(0deg); }
  75%    { transform: translateY(-5px) rotate(-2deg); }
}
#audio-visualizer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Dropdown lateral */
.dropend .dropdown-menu { display: none; }
.dropend.show > .dropdown-menu {
  display: block;
  position: static;
  margin-left: 1rem;
}
@media(min-width: 992px) {
  .dropend .dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
  }
  .dropend:hover > .dropdown-menu,
  .dropend.show > .dropdown-menu {
    display: block;
  }
}

/* 1) Container flexível */
.svg-btn-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* 2) Base dos botões circulares */
.svg-btn-group .svg-btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}

/* 3) Força o SVG em branco */
.svg-btn-group .svg-icon {
  width: 1.2rem;
  height: 1.2rem;
  filter: invert(1);
}

/* 4) Cores oficiais de cada rede */
.svg-btn-group .instagram { background: #E4405F; }
.svg-btn-group .discord   { background: #5865F2; }
.svg-btn-group .shop      { background: #3a6d2d; }
.svg-btn-group .tiktok    { background: #000000;}

/* 5) Efeitos de hover / active */
.svg-btn-group .svg-btn-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}
.svg-btn-group .svg-btn-circle:active {
  transform: scale(0.95);
}

/* 6) Foco acessível */
.svg-btn-group .svg-btn-circle:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}


/* Cores de background */
.bg-color-penha { background-color: var(--color-bg-secondary); }
.main-background {
  background-color: var(--color-bg-main);
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 208px);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  color: var(--color-text);
}

/* Títulos */
.w-title   { font-size: 72px; margin-bottom: 20px; font-weight: 600; }
.subtitle  { font-size: 45px; margin-bottom: 20px; font-weight: 600; }

/* Modal */
.modal-title { font-size: 28px; font-weight: 700; color: var(--color-text); }
.modal-body  { font-size: 18px; color: var(--color-text); }
#modalAvisoAdm .modal-body p {
  font-family: var(--ff-base);
  font-weight: 700;
  color: #f8f9fa;
  font-size: 18px;
}

/* Carousel & galeria */
.streamer-box { position: relative; min-height: 360px; padding: 1rem; }
.streamer-nome{ margin-top: .5rem; font-size: 1rem; }
.indicator-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-text);
  transition: transform var(--transition-fast);
}
.carousel-indicators button.active .indicator-img {
  transform: scale(1.2);
  border-color: #0d6efd;
}
#carouselExampleIndicators .carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  display: flex !important;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
#carouselExampleIndicators .carousel-indicators button {
  display: flex;
  position: static !important;
  flex: 0 0 auto;
  width: auto !important;
  margin: 0 !important;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
}

/* Seção básica e galeria */
.sectionBasicConfig {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  color: var(--color-text);
}
.gallery { max-width: 80%; max-height: 60%; }

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: var(--color-bg-secondary);
  font-size: .9em;
  color: #aaa;
}

/* Audio controls */
#audio-controls.muted #btn-mute { color: #777; }

/* Botão customizado */
.custom-btn {
  display: inline-block; padding: 16px 32px; font-size: 32px;
}

/* Form responsabilidades */
#form-responsabilidades { padding: 15vh; }

/* Perguntas frequentes */
#accordionFlushExample { width: 100%; }

/* Regras */
#list_regras li { margin-top: 2em; }
#btn-top {
  background-color: var(--color-bg-default);
  color: var(--color-text);
  border: none;
  border-radius: 5px;
  padding: 15px;
  cursor: pointer;
  margin-top: 5vh;
}
.rule_number,
.rule_name,
.rule_paragraph {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
}
.rule_number     { font-size: 24px; font-weight: bold; color: red; }
.rule_name       { font-size: 24px; font-weight: bold; color: var(--color-text); }
.rule_paragraph  { font-size: 16px; font-weight: 400; color: var(--color-text); }

.div_card {
  padding: 2rem;
}

.my-badge-color-i{
  background-color: var(--color-my-badge-i) !important;
}
.my-badge-color-d{
  background-color: var(--color-my-badge-d) !important;
}

.my-badge-config {
  padding: 0.5rem;
  font-size: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
}

.card-paragraph {
  margin: 2vh 0 0 0;
  font-size: 16px;
  font-weight: 400;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--color-text-card-paragraph);
}
.card-img-top {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Media queries agrupadas */
@media screen and (max-width: 768px) {
  p                                    { font-size: 1.5em; }
  .w-title                             { font-size: 45px; }
  .subtitle                            { font-size: 26px; }
  .modal-title, .modal-body,
  #modalAvisoAdm .modal-body p        { font-size: 14px; }
  .card-img-top                     { height: 250px;}
}
